<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    {if $factory_id==0 }
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Factory_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-factory_id" data-rule="" data-source="factory/index" class="form-control selectpage" name="row[factory_id]" type="text" value="{$row.factory_id|htmlentities}">
        </div>
    </div>
    {/if}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Group_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-group_id" data-rule="required" data-source="group/index" class="form-control selectpage" name="row[group_id]" type="text" value="{$row.group_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
            <div class="c-help">改动批次日期需手动修改生产流程日期</div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Last_batch_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-last_batch_id" data-rule="" data-source="batch/index" class="form-control selectpage" name="row[last_batch_id]" type="text" value="{$row.last_batch_id|htmlentities}" placeholder="父级" >
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pinxi_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pinxi_id" data-rule="" data-source="pinxi/index" data-field="name" data-format-item="{daici} - {name}" class="form-control selectpage" name="row[pinxi_id]" type="text" value="{$row.pinxi_id|htmlentities}" placeholder="无" >
        </div>
        <div class="c-help"><a href="{:url('pinxi/add')}" class="btn-dialog">添加品系</a></div>

    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Createtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-createtime" class="form-control" name="row[createtime]" type="text" disabled value="{$row.createtime|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>
            <div class="c-help">( 使用中:手机端可见, 使用结束:结束后不建议删除, 隐藏/删除:(待定) )</div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('生产流程')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="c-help" style="color: #0a6aa1; ">
               <table>
              		 <tr><td>加光        </td><td>{$row.batchschedule.light}  </td></tr> 
              		 <tr><td>配种        </td><td>{$row.batchschedule.breed}  </td></tr> 
              		 <tr><td>摸胎        </td><td>{$row.batchschedule.touch}  </td></tr> 
              		 <tr><td>母兔转舍    </td><td>{$row.batchschedule.turn}  </td></tr>   
              		 <tr><td>产仔        </td><td>{$row.batchschedule.birth}  </td></tr> 
              		 <tr><td>选留        </td><td>{$row.batchschedule.select}  </td></tr> 
              		 <tr><td>12日龄      </td><td>{$row.batchschedule.day12}  </td></tr> 
              		 <tr><td>19日龄      </td><td>{$row.batchschedule.day19}  </td></tr> 
              		 <tr><td>26日龄      </td><td>{$row.batchschedule.day26}  </td></tr> 
              		 <tr><td>31日龄      </td><td>{$row.batchschedule.day31}  </td></tr> 
              		 <tr><td>35日龄断奶  </td><td>{$row.batchschedule.milkout}  </td></tr>   
                 <tr><td>群体预防种兔打耳号</td><td>{$row.batchschedule.ears}  </td></tr>      
              		 <tr><td>49日龄      </td><td>{$row.batchschedule.day49}  </td></tr> 
              		 <tr><td>61日龄      </td><td>{$row.batchschedule.day61}  </td></tr> 
              		<tr><td>75日龄出栏   </td><td>{$row.batchschedule.out}  </td></tr>  
                   
               </table>
            </div>

        </div>
            <div class="c-help" style="">
                <a href="{:url('batchschedule/edit')}?ids={$row.batchschedule.id} " data-title="设置批次生产流程日期节点" class="btn btn-dialog btn-danger-light" >修改设置</a>
            </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
